<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">


<ui:composition template="/layout/applicationLayout.xhtml">
	<ui:define name="body">
		<h:form id="consultarDonoProjeto">
			<f:metadata>
				<f:viewParam name="projeto" value="#{projetoBean.projeto}"></f:viewParam>
			</f:metadata>
			<p:fieldset legend="Detalhes do Projeto"
				style="margin: 0 auto;width: 960px;">
				<h:panelGrid columns="2" cellpadding="10">
					<h:outputText value=" Nome do Projeto:" />
					<h:outputText value="#{projetoBean.projeto.nome} " />
					<h:outputText value=" Categoria:" />
					<h:outputText value="#{projetoBean.projeto.categoria}" />
					<h:outputText value=" Valor:" />
					<h:outputText value="#{projetoBean.projeto.valor}">
						<f:convertNumber currencySymbol="R$" type="currency" />
					</h:outputText>
					<h:outputText value=" Duração:" />
					<h:outputText value="#{projetoBean.projeto.duracao} Dias" />



				</h:panelGrid>
				<p:fieldset legend="Descrição" style="height:300px">
                    #{projetoBean.projeto.descricao}
                </p:fieldset>
				<div style="text-align: center;">
					<p:button rendered="${usuarioSessaoBean.perfil == 'DP'}"
						value="Voltar" outcome="/donoprojeto/perfilDonoProjeto"
						ajax="false" />
					<p:button rendered="${usuarioSessaoBean.perfil == 'FREE'}"
						value="Voltar" outcome="/freelancer/perfilFreelancer" ajax="false" />
					<p:button rendered="${usuarioSessaoBean.perfil == null}"
						value="Voltar" outcome="/projeto/pesquisarProjeto" ajax="false" />
				</div>

			</p:fieldset>

		</h:form>

	</ui:define>

</ui:composition>



</html>

